package com.pengcheng.hnweb.controller;

import com.pengcheng.hnweb.service.DbService;
import com.pengcheng.hnweb.util.Common;
import com.pengcheng.hnweb.util.ControllerUtil;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.HashMap;
import java.util.Map;

@Controller
public class PickController {
    @Autowired
    private Common common;
    @Autowired
    private DbService dbService;
    @Autowired
    private ControllerUtil controllerUtil;
    @RequestMapping("/pick/{action}")
    public String list_user(HttpServletRequest request, Model model, @PathVariable("action") String action)
    {
        model=controllerUtil.pre(request,model);
        return "pick/"+action;
    }
}
